﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookClubIt.DTO;
using BookClubIt.Data;

namespace BookClubIt.Processor
{
    public class EmailProcessor
    {

        EmailData emailDataInstance;
        public EmailData EmailDataInstance
        {
            get
            {
                if (emailDataInstance == null) emailDataInstance = new EmailData();
                return emailDataInstance;
            }
        }

        public void SendWelcomeEmail(int uid)
        {
            EmailDataInstance.SendWelcomeEmail(uid);
        }
        public void CommentPostedEmail(int cid, int tid, int uid, string comment, string comment_user)
        {
            EmailDataInstance.CommentPostedEmail(cid, tid, uid, comment, comment_user);
        }
        public void SomeoneJoinedClubEmail(int cid, int leader_uid, bool isPrivate)
        {
            EmailDataInstance.SomeoneJoinedClubEmail(cid, leader_uid, isPrivate);
        }
    }
}
